<!--
 * @Author: your name
 * @Date: 2021-08-06 09:27:47
 * @LastEditTime: 2021-08-06 10:21:16
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vuestudy\vue\16-常用开源Vue库\ViewUi.html
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <!-- import stylesheet -->
    <link rel="stylesheet" href="http://unpkg.com/view-design/dist/styles/iview.css" />
    <script src="http://unpkg.com/view-design/dist/iview.min.js"></script>
    <title>Document</title>
</head>

<body>
    <div id="app">
        <i-menu mode="horizontal" :theme="theme1" active-name="1">
            <menu-item name="1">
                <Icon type="ios-paper" />
                内容管理
            </menu-item>
            <menu-item name="2">
                <Icon type="ios-people" />
                用户管理
            </menu-item>
            <Submenu name="3">
                <template slot="title">
                    <Icon type="ios-stats" />
                    统计分析
                </template>
                <menu-group title="使用">
                    <menu-item name="3-1">新增和启动</menu-item>
                    <menu-item name="3-2">活跃分析</menu-item>
                    <menu-item name="3-3">时段分析</menu-item>
                </menu-group>
                <menu-group title="留存">
                    <menu-item name="3-4">用户留存</menu-item>
                    <menu-item name="3-5">流失用户</menu-item>
                </menu-group>
            </Submenu>
            <menu-item name="4">
                <Icon type="ios-construct" />
                综合设置
            </menu-item>
        </i-menu>
        <br>
        <i-menu :theme="theme2">
            <Submenu name="1">
                <template slot="title">
                    <Icon type="ios-paper" />
                    内容管理
                </template>
                <menu-item name="1-1">文章管理</menu-item>
                <menu-item name="1-2">评论管理</menu-item>
                <menu-item name="1-3">举报管理</menu-item>
            </Submenu>
            <Submenu name="2">
                <template slot="title">
                    <Icon type="ios-people" />
                    用户管理
                </template>
                <menu-item name="2-1">新增用户</menu-item>
                <menu-item name="2-2">活跃用户</menu-item>
            </Submenu>
            <Submenu name="3">
                <template slot="title">
                    <Icon type="ios-stats" />
                    统计分析
                </template>
                <MenuGroup title="使用">
                    <menu-item name="3-1">新增和启动</menu-item>
                    <menu-item name="3-2">活跃分析</menu-item>
                    <menu-item name="3-3">时段分析</menu-item>
                </MenuGroup>
                <MenuGroup title="留存">
                    <menu-item name="3-4">用户留存</menu-item>
                    <menu-item name="3-5">流失用户</menu-item>
                </MenuGroup>
            </Submenu>
        </i-menu>
</body>
<script>
    new Vue({
        el: "#app",
        data() {
            return {};
        },
    });
</script>

</html>